<?php

class Macdinh extends CI_Model {

    function __construct() {
        parent::__construct();
    
    }
    
    function getmenu() {
        $query = $this->db->where("category_status",1);
        $query = $this->db->get('category');
        return $query->result();
    }

    function getsubmenu() {
        $query = $this->db->where("sub_category_status",1);
        $query = $this->db->get('sub_category');
        return $query->result();
    }

}
